package com.etc.dao;

import com.etc.entity.Users;
import com.etc.tools.PageData;

public interface UsersDao {
	/**
	 * 用户访问的dao
	 * 
	 * @param username
	 * @param userpassword
	 * @return
	 */
	public Users getUsersByNameAndPwd(String username, String userpassword);

	/**
	 * @Fun分页+模糊查询
	 * 
	 * @param keywords
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public PageData<Users> getUsers(String keywords, int pageNo, int pageSize);

	/**
	 * @Fun改变state
	 * @param userid
	 * @param userstate
	 * @return
	 */
	public boolean updateState(int userid, int userstate);
	
	
	public boolean update(Users user);

}
